//
//  MLWTipsICookOtherModel.m
//  KITCHEN_STORIES
//
//  Created by 孟令通 on 16/6/14.
//  Copyright © 2016年 MLW. All rights reserved.
//

#import "MLWTipsICookOtherModel.h"

#import "MLWTipsICookOtherSuitableModel.h"

@implementation MLWTipsICookOtherModel

-(instancetype)initWithDic:(NSDictionary *)dic
{
    self = [super initWithDic:dic];
    
    if (self) {
        
        self.withModelArray = [NSMutableArray array];
        
        self.notWithModelArray = [NSMutableArray array];
        
        for (NSDictionary *dict in self.suitable_with) {
            
            MLWTipsICookOtherSuitableModel *model = [[MLWTipsICookOtherSuitableModel alloc] initWithDic:dict];
            
            [self.withModelArray addObject:model];
            [model release];
            
        }
        
        for (NSDictionary *dict in self.suitable_not_with) {
            
            MLWTipsICookOtherSuitableModel *model = [[MLWTipsICookOtherSuitableModel alloc] initWithDic:dict];
            
            [self.notWithModelArray addObject:model];
            [model release];
            
        }
        
    }
    
    return self;
}

@end
